#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#  Copyright (c) Huoty - All rights reserved
#
#      Author: Huoty <sudohuoty@gmail.com>
#  CreateTime: 2017-04-28 10:04:27
# *************************************************************

import sys
try:
    try:
        print x
    except Exception, ex:
        raise NameError("test error")
except Exception, er:
    print(sys.exc_info())
    print "0", str(sys.exc_info()[0])
    print "1", sys.exc_info()[1]
    print "2", sys.exc_info()[2]
    print "exc_value:", sys.exc_value
